YNQ  YNQ-1.6.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups

Macros

#define SYThread   pthread_t
 
#define syIsValidThread(_taskId_)   TRUE
 
#define syThreadGetCurrent   pthread_self
 
#define syThreadDestroy(_taskId_)   pthread_cancel(_taskId_);
 

Functions

void syThreadStart (NQ_BOOL isRT, NQ_INT priorityLevel, SYThread *taskIdPtr, void(*startpoint)(void), NQ_BOOL background)
 

Detailed Description

Threads

Thread management calls.

Macro Definition Documentation

#define SYThread   pthread_t

TID - thread handle

#define syIsValidThread (   _taskId_)    TRUE
#define syThreadGetCurrent   pthread_self
#define syThreadDestroy (   _taskId_)    pthread_cancel(_taskId_);

Function Documentation

void syThreadStart ( NQ_BOOL  isRT,
NQ_INT  priorityLevel,
SYThread taskIdPtr,
void(*)(void)  startpoint,
NQ_BOOL  background 
)

Create an internal thread

Parameters
isRTWhether to set priority level according to priorityLevel
priorityLevelThe priority level of the thread
taskIdPtrPointer to a thread handle to create
startpointPointer to the function to be used as the thread startpoint
backgroundTRUE if the thread should have low priority. FALSE if the thread should have normal priority.